Pod::Spec.new do |s|
  s.name         = 'GooglePlus'
  s.version      = '1.7.1'
  s.summary      = 'Google+ Platform for iOS.'
  s.description  = 'Create a more engaging experience and connect with more users by integrating social into your app. Extend your app in new and creative ways using these Google+ platform features.'
  s.homepage     = 'https://developers.google.com/+/mobile/ios/'
  s.license      = { :type => 'BSD',
                     :text => 'Copyright 2014 Google Inc.'}
  s.authors      = [ 'Google Inc.' ]
  s.source       = { :http => 'https://developers.google.com/+/mobile/ios/sdk/google-plus-ios-sdk-1.7.1.zip'}
  s.source_files = 'google-plus-ios-sdk-1.7.1/GoogleOpenSource.framework/Versions/A/Headers/*.h'
  s.resources    = 'google-plus-ios-sdk-1.7.1/GooglePlus.bundle'
  s.frameworks   = [ 'AddressBook',
                     'AssetsLibrary',
                     'CoreGraphics',
                     'CoreLocation',
                     'CoreMotion',
                     'CoreText',
                     'Foundation',
                     'GoogleOpenSource',
                     'GooglePlus',
                     'MediaPlayer',
                     'Security',
                     'SystemConfiguration',
                     'UIKit' ]
  s.requires_arc = false

  s.subspec 'GPPSignIn' do |signin|
    signin.source_files = ['google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPSignIn*.h']
#    signin.dependency 'GPPACLPicker'
  end

  s.subspec 'GPPSharebox' do |sharebox|
    sharebox.source_files = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPDeeplink.h',
                              'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPShare.h',
                              'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPURLHandler.h' ]
#    sharebox.dependency 'GPPACLPicker'
  end

#  s.subspec 'GPPACLPicker' do |aclpicker|
#    aclpicker.private_header_files   = ['google-plus-ios-sdk-1.7.1/GooglePlus.framework/Headers/GPPACLPicker/*.h']
#  end

end